  /**
   * Generate time : 2012-02-27 17:22:21
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZM10 
 * table comment : 设备分类 
 */
public class ZM10 extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdCode = " ";		/* 编号*/
	private String fdName = " ";		/* 名称*/
	private String fdParentId = " ";		/* 上级类别ID*/
	private String fdToencode = " ";		/* 分类内码*/
	private String fdIsLeaf = " ";		/* 是否叶子*/
	private String fdRemarks = " ";		/* 备注*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCode");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdParentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("上级类别ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdToencode");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("分类内码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsLeaf");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("是否叶子");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZM10() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdCode - 编号
	 * @return the fdCode
	 */
	public String getFdCode() {
		return this.fdCode;
	}
	
	/**
	 * set the fdCode - 编号
	 */
	public void setFdCode(String fdCode) {
		this.fdCode = fdCode;
	}
	
	/**
	 * get the fdName - 名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdParentId - 上级类别ID
	 * @return the fdParentId
	 */
	public String getFdParentId() {
		return this.fdParentId;
	}
	
	/**
	 * set the fdParentId - 上级类别ID
	 */
	public void setFdParentId(String fdParentId) {
		this.fdParentId = fdParentId;
	}
	
	/**
	 * get the fdToencode - 分类内码
	 * @return the fdToencode
	 */
	public String getFdToencode() {
		return this.fdToencode;
	}
	
	/**
	 * set the fdToencode - 分类内码
	 */
	public void setFdToencode(String fdToencode) {
		this.fdToencode = fdToencode;
	}
	
	/**
	 * get the fdIsLeaf - 是否叶子
	 * @return the fdIsLeaf
	 */
	public String getFdIsLeaf() {
		return this.fdIsLeaf;
	}
	
	/**
	 * set the fdIsLeaf - 是否叶子
	 */
	public void setFdIsLeaf(String fdIsLeaf) {
		this.fdIsLeaf = fdIsLeaf;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCode")), fdCode));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdParentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdParentId")), fdParentId));
		setFdToencode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdToencode")), fdToencode));
		setFdIsLeaf(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsLeaf")), fdIsLeaf));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdCode",StringUtils.toString(fdCode, eiMetadata.getMeta("fdCode")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdParentId",StringUtils.toString(fdParentId, eiMetadata.getMeta("fdParentId")));	
			map.put("fdToencode",StringUtils.toString(fdToencode, eiMetadata.getMeta("fdToencode")));	
			map.put("fdIsLeaf",StringUtils.toString(fdIsLeaf, eiMetadata.getMeta("fdIsLeaf")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			
		return map;
	
	}
}